// Copyright (c) Appeon. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. 
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

using System.Data;
using System.Data.Common;
using System.Data.Odbc;
using System.Threading;
using System.Threading.Tasks;

namespace SnapObjects.Data.Odbc
{
    public class OdbcHanaAdoDbConnection : AdoDbConnection
    {
        public OdbcHanaAdoDbConnection(string connectionString, IDataContextOptions options) 
            : base(connectionString)
        {
            this.Options = options;
        }

        public OdbcHanaAdoDbConnection(OdbcConnection sqlConnection, IDataContextOptions options) 
            : base(sqlConnection)
        {
            this.Options = options;
        }

        protected override DbConnection CreateDbConnection()
        {
            return new OdbcConnection(this.ConnectionString);
        }

        private IDataContextOptions Options { get; set; }
    }
}
